"""
The is doc
"""

from django.contrib.auth import get_user_model
from rest_framework import serializers

from rest_framework.serializers import ModelSerializer


class AppAdminSerializer(ModelSerializer):
    # all_permissions = serializers.SerializerMethodField("get_all_permissions")

    # def get_all_permissions(self, obj):
    #     return list(obj.get_all_permissions())

    class Meta:
        model = get_user_model()
        exclude = ["password"]
